<?php
#############################################################################
# Diverse configuration parameters and constants used in this plugin.       #
#                                                                           #
# Author: consros 2010                                                      #
#############################################################################

# put here your account settings which you have got from etv
define("USERNAME", "");
define("PASSWORD", "");

# video stream pre-bufferring size in Kb
define("BUFFER_SIZE", 128);

# default font size used in plugin
define("FONT_SIZE", 14);

# use media proxy or not
define("MEDIA_PROXY", "");

# width of page by default
define("PAGE_WIDTH", 1100);

# height of page by default
define("PAGE_HEIGHT", 650);

# size of embedded video window
define("VIDEO_WIDTH",  704);
define("VIDEO_HEIGHT", 576);

# detection of used browser: normal or PCH-specific one
define("EMBEDDED_BROWSER", 
    FALSE !== strpos($_SERVER['HTTP_USER_AGENT'], 'Syabas'));

# current time will be taken from shell
define("TIME_STRING", `date -R`);

# UTC time is calculated by direct parse
define("UTC_TIME", strtotime(TIME_STRING));

# time zone can be parsed out from the time string
define("TIME_ZONE_SECONDS", 1 == preg_match('/((\+|-)\d\d)(\d\d)$/', 
    TIME_STRING, $matches) ? ($matches[1] * 60 + $matches[3]) * 60 : 0);

# now time can be calculated using UTC time and time zone
define("NOW_TIME", UTC_TIME + TIME_ZONE_SECONDS);

?>
